|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.ChargeableItem
public class ChargeableItem
This Java class represents a chargeable item that is sent by your client
applications or systems (mediation) and to be charged by the connected SAP CC Core Server system;
This chargeable item represents data related to the usage (consumption) of a customer service.
The service consumption relates to an end customer of the service provider; he want to use,
is using, or has used the marketable service.
A chargeable item includes a set of custom properties sent by your client application.
SAP Convergent Charging uses these properties to rate (dynamic pricing) and charge the usage.
You can define some properties to be transmitted by SAP CC to the upstream systems like
a billing system.
Property,
AsyncBatchServiceClient.acquire(..) for direct batch acquisition (asynchronous communications),
(BatchServiceClient.acquire(..) for direct batch acquisition (synchronous communications)The XML APIs specify the following XSD fragment:
| Constructor Summary | |
|---|---|
ChargeableItem()
Constructs an empty chargeable item. |
|
ChargeableItem(java.lang.String name)
Constructs a chargeable item with an action name. |
|
ChargeableItem(java.lang.String name,
java.util.Vector<Property> properties)
Constructs a completly defined chargeable item. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
void |
addProperty(Property property)
Adds a new property to this chargeable item. |
ChargeableItem |
duplicate()
Returns a new clone instance of this chargeable item. |
java.lang.String |
getName()
Returns the name of the chargeable item. |
java.util.Vector<Property> |
getProperties()
Returns the vector of the item properties. |
java.util.List<Property> |
getPropertiesAsList()
Returns the list of the item properties. |
Property |
getProperty(java.lang.String propertyName)
Returns the property which name
is propertyName. |
UniqueIdentifier |
getUniqueIdentifier()
Returns the unique identifier of the chargeable item. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
marshal(XMLOutputter output,
java.lang.String tagName)
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setName(java.lang.String name)
Sets the name of this chargeable item. |
void |
setUniqueIdentifier(UniqueIdentifier uid)
Sets the unique identifier of the chargeable item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChargeableItem()
public ChargeableItem(java.lang.String name)
name - The name of the chargeable item
public ChargeableItem(java.lang.String name,
java.util.Vector<Property> properties)
name - The name of the chargeable itemproperties - The property set associated to
this chargeable item| Method Detail |
|---|
public void setName(java.lang.String name)
name - The name of the chargeable itempublic java.lang.String getName()
public void setUniqueIdentifier(UniqueIdentifier uid)
uid - The unique identifier of the chargeable itempublic UniqueIdentifier getUniqueIdentifier()
public void addProperty(Property property)
property to this chargeable item.
property - The added propertypublic java.util.Vector<Property> getProperties()
propertiespublic java.util.List<Property> getPropertiesAsList()
propertiespublic Property getProperty(java.lang.String propertyName)
property which name
is propertyName.
propertyName - The name of the requested property
property, or null
if no such property exists in this chargeable item.public ChargeableItem duplicate()
public void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
public void marshal(XMLOutputter output,
java.lang.String tagName)
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||